// 1 为输入框input
// 2 为下拉选择select  21 多选下拉框
// 3 为日期选择框  31 日期范围
// 4 为多行文本输入textarea
export const allFields = [
  { fieldName: 'caseNo', fieldTxt: '案件编号', placeholder: '请输入案件编号', UiType: 1, must: true },
  { fieldName: 'caseName', fieldTxt: '案件名称', placeholder: '请输入案件名称', UiType: 1, must: true },
  { fieldName: 'caseDate', fieldTxt: '发生日期', placeholder: '请选择发生日期', UiType: 3, must: true },
  { fieldName: 'caseArea', fieldTxt: '发案地', placeholder: '请输入发案地', UiType: 1, must: true },
  { fieldName: 'caseLocation', fieldTxt: '发生地点', placeholder: '请输入发生地点', UiType: 1, must: true },
  { fieldName: 'caseKind', fieldTxt: '案（事）件性质', placeholder: '请选择案（事）件性质', UiType: 2, must: true },
  { fieldName: 'caseSituation', fieldTxt: '案（事）件情况', placeholder: '请输入案（事）件情况', UiType: 4 },
  { fieldName: 'suspectCardCode', fieldTxt: '主犯（嫌疑人）证件代码', placeholder: '请选择主犯（嫌疑人）证件代码', UiType: 2, must: false },
  { fieldName: 'suspectCardNo', fieldTxt: '主犯（嫌疑人）证件号码', placeholder: '请输入主犯（嫌疑人）证件号码', UiType: 1, must: true },
  { fieldName: 'suspectName', fieldTxt: '主犯（嫌疑人）姓名', placeholder: '请输入主犯（嫌疑人）姓名', UiType: 1, must: true },
  { fieldName: 'victimName', fieldTxt: '受害人姓名', placeholder: '请输入受害人姓名', UiType: 1, must: true },
  { fieldName: 'victimCardNo', fieldTxt: '受害人证件号码', placeholder: '请输入受害人证件号码', UiType: 1, must: true },
  { fieldName: 'victimContact', fieldTxt: '受害人联系方式', placeholder: '请输入受害人联系方式', UiType: 1, must: true },
  { fieldName: 'solveCase', fieldTxt: '是否破案', placeholder: '请选择是否破案', UiType: 2, must: true },
  { fieldName: 'criminalNum', fieldTxt: '作案人数', placeholder: '请输入作案人数', UiType: 1, must: true },
  { fieldName: 'escapeNum', fieldTxt: '在逃人数', placeholder: '请输入在逃人数', UiType: 1, must: true },
  { fieldName: 'catchSuspectNum', fieldTxt: '抓捕人数', placeholder: '请输入抓捕人数', UiType: 1, must: true },
  { fieldName: 'solveCaseDetail', fieldTxt: '案件侦破情况', placeholder: '请输入案件侦破情况', UiType: 4, must: true },
  { fieldName: 'caseType', fieldTxt: '案件类型', placeholder: '请选择案件类型', UiType: 2, must: true }
]

export const optList = {
  caseKind: [
    { code: '01', name: '治安案件' },
    { code: '02', name: '刑事案件' },
    { code: '03', name: '民事案件' },
    { code: '04', name: '行政案件' },
    { code: '99', name: '其他' }
  ],
  solveCase: [
    { code: 1, name: '是' },
    { code: 0, name: '否' }
  ],
  caseType: [
    { code: 1, name: '涉及师生安全的案（事）件' },
    { code: 2, name: '涉及线、路案（事）件' }
  ]
}
